# 列表
name_list = ['tom', 'Jack', "desoerado"]

for name in name_list:
    print(name)

name_list.append('张王岩')
name_list.extend(['我是列表数据1', '我是列表数据2'])
name_list.insert(0, '天王盖地虎')
print(name_list.index('张王岩', 0, 10))
name_list.count('张王岩')
'张王岩' in name_list
'张王岩' not in name_list


del name_list[0]
name_list.pop(0)
name_list.remove('张王岩')
name_list.clear()

name_list[0] = '张王岩'
name_list.reverse()
name_list.sort()

name_list.index('张王岩', 0, 10)
name_list = [['1', '2'], ['3', '4']]


t1 = (10, 20, 30)
print(t1[2])
t1.index(10)
t1.count(10)
t1.len(t1)

# 字典

info = {'name': '张王岩', 'id': 100, 'sex': 0}

info['address'] = '山西省'

info.get('hello', 'hello')

info.keys()
info.values()
info.items()

# 集合
# set 无序, 不可重复的
my_list = ['q', 'b', 'c', 'd']
my_set = set(my_list)

# 集合转列表
my_list = list(my_set)

# 合并 复制 in not in
